<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>js对象</title>
		<script>
			var person = {
				name: "tony",
				age: 18,
				tostring: function(){
					return this.name + this.age;
				}				
			};
			person.toUpperCase = function(){
				return this.name.toUpperCase();
			}
			
			person.school = "中国人民大学";
			
			console.log(person.name);
			console.log(person.tostring());
			console.log(person.toUpperCase());
			
			console.log(person);
			console.table(person);
		</script>
	</head>
	<body>
	</body>
</html>
